#pragma once
#include <osg/Vec3d>

#include "CmdHandler3.h"

class Ent;
class Scene;
class PointHandler;
class Copy3DHandler : public CmdHandler3
{
	Q_OBJECT
public:
	Q_INVOKABLE Copy3DHandler();
	~Copy3DHandler();

	virtual void input(const QVariant& data, const QString& rawInput, CommandSource cs) override;

	osg::Vec3d m_start;
	osg::Vec3d m_end;
	std::vector<std::shared_ptr<Ent>> m_origins;
	std::shared_ptr<PointHandler> m_pointStateMachine;
	std::vector<std::vector<std::shared_ptr<Ent>>> m_cloneVec;
	void drawFinish(Scene* scene);
};
